<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
		<view class="colum-area">
			<text class="title grid-item" @tap="gotoDatePage">测试时间观察器</text>
			<text class="title grid-item" @tap="gotoAmount">金额格式化</text>
			<text class="title grid-item" @tap="gotoFile">文件操作</text>
			<text class="title grid-item" @tap="gotoHttp">http操作</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '对于各个功能的测试项目，发挥你的想象力'
			}
		},
		onLoad() {

		},
		methods: {
			gotoDatePage() {
				uni.navigateTo({
					url: '../function/dateOpera'
				})
			},
			gotoAmount(){
				uni.navigateTo({
					url:'../function/amount'
				})
			},
			gotoFile(){
				uni.navigateTo({
					url:'../function/fileOpera'
				})
			},
			gotoHttp(){
				uni.navigateTo({
					url:'../function/httpTest'
				})
			}
		}
	}
</script>

<style scoped>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.colum-area {
		display: grid;
		grid-template-columns: auto auto auto;
		margin: 15rpx 15rpx ;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	.grid-item { 
	  border: 1px solid rgba(0, 0, 0, 0.8);
	  padding: 5px;
	  text-align: center;
	}
</style>
